<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path;
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" href="css/tableCss.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form method="post" action="editMenuInfoById"
		enctype="multipart/form-data" name="editMenu">
		<table id="model_t" align="center">
			<tr style="height: 10px;">
				<td id="tth" colspan="3"><p id="thp">&nbsp;&nbsp;编辑菜</p></td>
			</tr>
			<tr>
				<td><p id="tdp">菜名：</p></td>
				<td>
					<p id="tdp">
						<input type="hidden" name="menu.id" value="${menu.id }"> <input
							type="hidden" name="menu.shopId" value="${menu.shopId}">
						<input type="hidden" name="menu.picturePath"
							value="${menu.picturePath}"> <input type="text"
							name="menu.menuName" value="${menu.menuName}"> <input
							type="hidden" name="menu.totalMenu" value="${menu.totalMenu}">
							<input type="hidden" name="shop.id" value="${menu.shopId}"> 
					</p>
				</td>
			</tr>
			<tr>
				<td><p id="tdp">价格：</p></td>
				<td><p id="tdp">
						<input type="text" name="menu.price" value="${menu.price}">
					</p></td>
			</tr>
			<tr>
				<td><p id="tdp">图片：</p></td>
				<td><img id="img" src="<%=basePath%>${menu.picturePath}"></td>
				<td><p id="tdp">
						<s:file name="picture" />
						<s:fielderror fieldName="picture"></s:fielderror>
					</p></td>

			</tr>
			<tr>
				<td colspan="2"><p id="tdp">${msg}</p></td>
			</tr>
			<tr>
				<td colspan="2"><input type="submit" value="提交"><input
					type="reset" value="重置"></td>
			</tr>
		</table>
	</form>
</body>
</html>